<?php
require 'basehandle.php';
require '../dao/alldao.php';

class Chongding implements basehandle{
	public function dohandle(){
		$uname=$_POST['uname'];
		$val=$_POST['val'];
		$jiekou=$_POST['jiekou'];
		$dao=new alldao();
 		$rs=$dao->chongding($uname,$val,$jiekou);
		if(!empty($rs)){	
			$info=array("rs"=>"success","successinf"=>"success");
		}
		else{
			$info=array("rs"=>"error","errorinf"=>"失败");
		}
		echo json_encode($info);
	}
	
}  
?>